package com.example.mybatis.mapper;

import com.example.mybatis.bean.QuestionBan;
import com.example.mybatis.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionBanMapper {
    int update(QuestionBan questionBan);

    QuestionBan selectById(Integer id);

    int removeById(Integer id);

    int insert( List<QuestionBan> questionBan);

    //List<QuestionBan> selectList(@Param("matter")String matter,@Param("catalogueId") String catalogueId);

    List<QuestionBan> selectPage(@Param("page") Page page, @Param("matter") String matter ,@Param("catalogueId") Integer catalogueId);

    List<QuestionBan> selectPage1(@Param("matter") String matter , @Param("catalogueId") Integer catalogueId);


    int selectCount (@Param("matter") String matter, @Param("catalogueId") Integer catalogueId) ;

}
